Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[controller] Add StoreGrpcService for store related gRPC endpoints and reduce boilerplate #1454

Merged

Conversation

sushantmane
Copy link
Collaborator

@sushantmane sushantmane commented Jan 17, 2025

Add StoreGrpcService and refactor gRPC server configuration

  • Introduced StoreGrpcServiceImpl for store-related gRPC endpoints (update, get, delete ACLs).
  • Added VeniceUnauthorizedAccessException to handle unauthorized access scenarios.
  • Refactored VeniceGrpcServerConfig to support multiple BindableService instances.
  • Updated VeniceGrpcServer to register multiple services and interceptors.
  • Added StoreRequestHandler to process store-specific gRPC requests.
  • Introduced ControllerGrpcServerUtils for common gRPC request handling and error responses.
  • Added unit tests for StoreRequestHandler and enhanced existing gRPC server tests.

How was this PR tested?

UT and E2E tests

Does this PR introduce any user-facing changes?

  • No. You can skip the rest of this section.
  • Yes. Make sure to explain your proposed changes and call out the behavior change.

…d reduce boilerplate

Add checkResourceCleanupForStoreCreation to gRPC

Move create store to store grpc service
Copy link
Contributor

@KaiSernLim KaiSernLim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@sushantmane sushantmane merged commit 43a6135 into linkedin:main Jan 23, 2025
57 checks passed
@sushantmane sushantmane deleted the grpc-in-venice-control-plane-acl-apis branch January 23, 2025 20:00
@sushantmane
Copy link
Collaborator Author

Thanks a lot, @KaiSernLim 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants